package com.kingint.mbg.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.kingint.mbg.group.Insert;
import com.kingint.mbg.group.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class RepairGoodReturn implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("pid")
    private Integer pid;

    @ApiModelProperty(value = "维修物品名称")
    @TableField("repair_name")
    @NotEmpty(groups = {Insert.class, Update.class},message = "维修物品名称不能为空")
    private String repairName;

    @ApiModelProperty(value = "单位")
    @TableField("unit")
    private String unit;

    @ApiModelProperty(value = "备注")
    @TableField("note")
    private String note;

    @ApiModelProperty(value = "酒店id")
    @TableField("hotel_id")
    private Integer hotelId;

    @ApiModelProperty(value = "类型（1，耗材类，2，五金类）")
    @TableField("type")
    private Integer type;

    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "状态（0，正常，1删除）")
    @TableField("status")
    private Integer status;

    @TableField(exist = false)
    private List<RepairGoodReturn> goodReturnList;

}
